<?php


namespace app\agent\service;

class MoneyService
{
	public static function get_log_list($options)
	{
		$where[] = ["uid", "=", $options["id"]];
		$count = \think\Db::name("app_agent_money_log")->where($where)->count();
		$pages = ceil($count / $options["limit"]);
		$list = \think\Db::name("app_agent_money_log")->where($where)->page($options["page"], $options["limit"])->order("id", "desc")->select();
		return ["code" => \app\system\model\Code::success, "data" => $list, "count" => $count, "pages" => $pages];
	}
}